UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Apache web server log files must only be accessible by privileged users.


Overview

Finding ID Version Rule ID IA Controls Severity
V-214314 AS24-W1-000180 SV-214314r879576_rule Medium
Description
Log data is essential in the investigation of events. If log data were to become compromised, competent forensic analysis and discovery of the true source of potentially malicious system activity would be difficult, if not impossible, to achieve. In addition, access to log records provides information an attacker could potentially use to their advantage since each event record might contain communication ports, protocols, services, trust relationships, user names, etc. The web server must protect the log data from unauthorized read, write, copy, etc. This can be done by the web server if the web server is also doing the logging function. The web server may also use an external log system. In either case, the logs must be protected from access by non-privileged users.
STIG Date
Apache Server 2.4 Windows Server Security Technical Implementation Guide 2022-12-14

Details

Check Text ( C-15526r277445_chk )
Review the <'INSTALL PATH'>\conf\httpd.conf file to determine the location of the logs.

Determine permissions for log files. From the command line, navigate to the directory where the log files are located and enter the following command:

icacls <'Apache Directory'>\logs\*

ex: icacls c:\Apache24\logs\*

Only the Auditors, Web Managers, Administrators, and the account that runs the web server should have permissions to the files.

If any users other than those authorized have read access to the log files, this is a finding.
Fix Text (F-15524r277446_fix)
To maintain the integrity of the data that is being captured in the log files, ensure that only the members of the Auditors group, Administrators, and the user assigned to run the web server software are granted permissions to read the log files.